package com.xymtop.api.exception;

/**
 * @ClassName : ServiceException
 * @Description : 运行时错误类，一切自定义错误的父类
 * @Author : 肖叶茂
 * @Date: 2022/12/1  11:23
 */
//专用于处理业务层的异常基类
//e.g. throws new ServiceException("业务层出现异常")

public class ServiceException extends RuntimeException{
    public ServiceException() {
        super();
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }

    protected ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}

